﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Game.model.worldstatistics;

namespace Game.data
{
    public sealed class WorldStatisticHolder
    {
        private  CategoryType _cat;
	    private  short _place;
	    private  int _objId;
	    private  String _name;
	    private  long _value;
	    private  int _clanCrestId;
	    private  bool _isClanStatistic;

	    public WorldStatisticHolder(int catId, int subcatId, short place, int objId, String name, long value)
	    {
		    _cat = CategoryType.getCategoryById(catId, subcatId);
		    _place = place;
		    _objId = objId;
		    _name = name;
		    _value = value;
		    _clanCrestId = 0;
		    _isClanStatistic = false;
	    }

	    public WorldStatisticHolder(int objId, String name, long value, int clanCrestId)
	    {
		    _cat = null;
		    _place = 0;
		    _objId = objId;
		    _name = name;
		    _value = value;
		    _clanCrestId = clanCrestId;
		    _isClanStatistic = true;
	    }

	    public int getObjId()
	    {
		    return _objId;
	    }

	    public String getName()
	    {
		    return _name;
	    }

	    public CategoryType getCategory()
	    {
		    return _cat;
	    }

	    public short getPlace()
	    {
		    return _place;
	    }

	    public long getValue()
	    {
		    return _value;
	    }

	    public int getClanCrestId()
	    {
		    return _clanCrestId;
	    }

	    public bool isClanStatistic()
	    {
		    return _isClanStatistic;
	    }
    }
}
